package core.hxl;

import core.hxl.listener.TaskListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CommandLineRunnerImpl implements CommandLineRunner {

    private final static Logger logger = LoggerFactory.getLogger(TaskListener.class);

    @Override
    public void run(String... strings) throws Exception {
        while (true){
            logger.info("still alive");
            Thread.sleep(1000);
        }
    }
}
